package com.lekang.system.service;

import java.util.List;
import java.util.Map;
import com.lekang.system.domain.AppointmentRegistration;

/**
 * 预约登记Service接口
 * 
 * @author 刘卓
 * @date 2025-10-13
 */
public interface IAppointmentRegistrationService 
{
    /**
     * 查询预约登记
     * 
     * @param id 预约登记主键
     * @return 预约登记
     */
    public AppointmentRegistration selectAppointmentRegistrationById(Long id);

    /**
     * 查询预约登记列表
     * 
     * @param appointmentRegistration 预约登记
     * @return 预约登记集合
     */
    public List<AppointmentRegistration> selectAppointmentRegistrationList(AppointmentRegistration appointmentRegistration);

    /**
     * 新增预约登记
     * 
     * @param appointmentRegistration 预约登记
     * @return 结果
     */
    public int insertAppointmentRegistration(AppointmentRegistration appointmentRegistration);

    /**
     * 修改预约登记
     * 
     * @param appointmentRegistration 预约登记
     * @return 结果
     */
    public int updateAppointmentRegistration(AppointmentRegistration appointmentRegistration);

    /**
     * 批量删除预约登记
     * 
     * @param ids 需要删除的预约登记主键集合
     * @return 结果
     */
    public int deleteAppointmentRegistrationByIds(Long[] ids);

    /**
     * 删除预约登记信息
     * 
     * @param id 预约登记主键
     * @return 结果
     */
    public int deleteAppointmentRegistrationById(Long id);

    /**
     * 到院核销
     */
    int markCompleted(Long id, java.util.Date arrivalTime);

    /**
     * 取消预约
     */
    int cancelById(Long id);

    /**
     * 定时过期处理
     */
    int expireOvertime();

    /**
     * 获取预约统计信息
     */
    Map<String, Object> getAppointmentStatistics();

    /**
     * 验证预约数据
     */
    String validateAppointment(AppointmentRegistration appointmentRegistration);

    /**
     * 根据状态查询预约列表
     */
    List<AppointmentRegistration> selectAppointmentRegistrationListByStatus(String status);
}
